package org.web.ssm.dao;

import org.apache.ibatis.annotations.Param;
import org.web.ssm.model.User;
import org.web.ssm.model.queryVo.BaseQuery;

import java.util.List;

public interface UserMapper {

    User selectByPrimaryKey(String userid);

    List<User> selectAll();

    List<User> getProductList(BaseQuery<User> productQuery);

    int getCount(BaseQuery<User> productQuery);

    User selectByOpenid(String openid);

    User selectByUsername(@Param("username") String username, @Param("password") String password);

    Integer updateUser(User user);

    Integer insertUser(User user);

    void deleteUser(String userid);
}